<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>放大镜</title>
    <link rel="stylesheet" href="../css/放大镜.css">
    <script src="../js/bigImg.js"></script>
</head>

<body>
    <div class="wrapAll cl">
        <div class="left">
            <div class="showGoods">
                <img class="smallImg" src="../images/girlsmall1.jpg" alt="">
                <div class="shadow"></div>
            </div>
            <ul class="showList">
                <li class="active"><img src="../images/girlsmall1.jpg" alt=""></li>
                <li><img src="../images/girlsmall2.jpg" alt=""></li>
                <li><img src="../images/girlsmall3.jpg" alt=""></li>
                <li><img src="../images/girlsmall4.jpg" alt=""></li>
            </ul>
        </div>
        <div class="right">
            <div class="scaleGoods">
                <img class="bigImg" src="../images/girlbig1.jpg" alt="">
            </div>
        </div>
    </div>

</body>
<script>
    var shadow = document.getElementsByClassName("shadow")[0];
    var showGoods = document.getElementsByClassName("showGoods")[0];
    var bigImg = document.getElementsByClassName("bigImg")[0];
    var smallImg = document.getElementsByClassName("smallImg")[0];
    var scaleGoods = document.getElementsByClassName("scaleGoods")[0];
    // var showList = document.getElementsByClassName("showList")[0];
    var liList = document.querySelectorAll(".showList li");

    var list = {shadow, showGoods, bigImg, smallImg, scaleGoods, liList};
    var re = new BigImg(list);
    re.init();
    console.dir(re);

</script>

</html>